package com.fresher.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fresher.dao.AccountDao;
import com.fresher.model.Accountinfo;

@Service
public class AccountService {
	
	@Autowired
	private AccountDao accountDao;
	//get list of accounts
	public List<Accountinfo> getListAccount(String loginId) {
		List<Accountinfo> AccountList = null;
		AccountList = accountDao.getAccounts(loginId);
		return AccountList;

	}
	
}
